package com.hua.filter;

import com.hua.util.UrlConfirm;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * ClassName:LoginInterceptor
 * Package:com.hua.filter
 * Description:
 * 过滤静态资源 验证码等
 * @data: 2022/10/18 16:01
 * @author:ChenJH

 */

public class LoginInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        if(UrlConfirm.getIsTure(request.getRequestURI())){
        return true;
        }
         return false;

    }
}
